#!/bin/bash
nasm -o test.bin boot2.s
echo ".bin file created"
dd if=test.bin of=../test.img bs=512 count=1 conv=notrunc
echo "img file created"
# VBoxManage convertdd test.img output.vdi
VBoxManage controlvm "testBoot" poweroff
sleep 1s

# VBoxManage startvm "testBoot"
set VBOX_GUI_DBG_ENABLED=true
set VBOX_GUI_DBG_AUTO_SHOW=true
VirtualBoxVM --startvm "testBoot" --debug --start-running
